﻿using CnBlogsClient.Views;
using System;
using Xamarin.Forms;
using Xamarin.Forms.PlatformConfiguration.AndroidSpecific;

namespace CnBlogsClient
{
    public partial class App : Xamarin.Forms.Application
    {
        public App()
        {
            InitializeComponent();
        }

        protected override void OnStart()
        {
            Global.MobileInitializer.Initialize();

            var bottemBarPage = new HomeTabbedPage();

            bottemBarPage.BackgroundColor = (Color)Xamarin.Forms.Application.Current.Resources["NavigationText"];
            bottemBarPage.On<Xamarin.Forms.PlatformConfiguration.Android>().SetToolbarPlacement(ToolbarPlacement.Bottom);
            
            MainPage = new XamNavigationPage(bottemBarPage);
        }

        protected override void OnSleep()
        {
        }

        protected override void OnResume()
        {
        }
    }
}
